home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 314.adf / Zc / zcsrc.lzh / genstubs / genstubs.h < prev    next >
C/C++ Source or Header  |  1988-06-18  |  1KB  |  50 lines

  1. /*
  2.  * genstubs.h: generates assembler code for the PDC version of Amiga.lib
  3.  *            from Commodore-supplied .fd files on the extras disk.
  4.  *
  5.  * Copyright 1988 by J.A.Lydiatt.  Permission is given to freely distribute
  6.  * this code for non-commercial use.
  7.  * Maintenance Notes:
  8.  *   18Jun88 - V1.0 Created by Jal.
  9.  */
  10. #include <stdio.h>
  11. /*
  12.  * Limits and Definitions used:
  13.  */
  14.  
  15. #define MAXSTR        32
  16. #define MAXPARMS    10
  17. #define SAME        0
  18.  
  19. /*
  20.  * Symbols returned by gettok().
  21.  */
  22.  
  23. #define COMMA        1
  24. #define COMMENT        2
  25. #define DIRECTIVE    3
  26. #define EOL        4
  27. #define ID        5
  28. #define LPAREN        6
  29. #define NUMBER        7
  30. #define RPAREN        8
  31. #define SLASH        9
  32. #define UNKNOWN        10
  33.  
  34. typedef struct funcinfo {
  35.     int nformal;            /* # of formal parmeters    */
  36.     int nlists;            /* # lists like D0/D1/D2 defined*/
  37.     unsigned int regmask;        /* bit mask of registers used.    */
  38.     int nregs[MAXPARMS];        /*  # registers in rlist[i]    */
  39.     char givenline[128];        /* line where specs drawn from. */
  40.     char name[MAXSTR];        /* name of the function.    */
  41.     char formal[MAXPARMS][MAXSTR];    /* name of format parameters.    */
  42.     char reglist[MAXPARMS][MAXSTR];    /* register list like D0/D1/D2  */
  43. } FUNCINFO;
  44.  
  45. typedef struct token {
  46.     int value;
  47.     char id[MAXSTR];
  48. } TOKEN;
  49.  
  50.